<?php
/*
	微信挪车用户端后台菜单
*/
defined('BY_JYA') or exit('error');
if($_SESSION['role_id']==1){
	$menus=array(
		array('title'=>'我的信息','icon'=>'fa-home','url'=>'jy_zhongyi/area.area_user/','child'=>array(
			array('title'=>'我的信息','child'=>array(
				array('url'=>'jy_zhongyi/area.area_user/','title'=>'我的信息'),
			)),
		)),
		array('title'=>'排班管理','icon'=>'fa-home','url'=>'jy_zhongyi/area.lesson_pai/','child'=>array(
			array('title'=>'排班管理','child'=>array(
				array('url'=>'jy_zhongyi/area.lesson_pai/','title'=>'排班管理'),
			)),
		)),
		array('title'=>'医馆管理','icon'=>'fa-home','url'=>'jy_zhongyi/area.index/','child'=>array(
			array('title'=>'医馆管理','child'=>array(
				array('url'=>'jy_zhongyi/area.index/','title'=>'医馆管理'),
			)),
		)),
		array('title'=>'大夫管理','icon'=>'fa-home','url'=>'jy_zhongyi/area.worker/','child'=>array(
			array('title'=>'大夫管理','child'=>array(
				array('url'=>'jy_zhongyi/area.worker/','title'=>'大夫管理'),
			)),
		)),
		array('title'=>'评价管理','icon'=>'fa-home','url'=>'jy_zhongyi/area.comment//type=0','child'=>array(
			array('title'=>'评价管理','child'=>array(
				array('url'=>'jy_zhongyi/area.comment//type=0','title'=>'学生评价大夫'),
				array('url'=>'jy_zhongyi/area.comment//type=1','title'=>'大夫评价学校'),
			)),
		)),
	);
}
if($_SESSION['role_id']==2){
	$menus=array(
		array('title'=>'医馆管理','icon'=>'fa-home','url'=>'jy_zhongyi/store.index/','child'=>array(
			array('title'=>'医馆管理','child'=>array(
				array('url'=>'jy_zhongyi/store.index/','title'=>'医馆管理'),
				array('url'=>'jy_zhongyi/store.storedata/','title'=>'门店排名'),
			)),
		)),
		array('title'=>'排课管理','icon'=>'fa-home','url'=>'jy_zhongyi/store.lesson_pai/','child'=>array(
			array('title'=>'排课管理','child'=>array(
				array('url'=>'jy_zhongyi/store.lesson_pai/','title'=>'排课管理'),
			)),
		)),
		array('title'=>'档案管理','icon'=>'fa-home','url'=>'jy_zhongyi/store.my_user/','child'=>array(
			array('title'=>'档案管理','child'=>array(
				array('url'=>'jy_zhongyi/store.my_user/','title'=>'患者列表'),
			)),
		)),
		array('title'=>'问诊订单','icon'=>'fa-home','url'=>'jy_zhongyi/store.lesson_log/','child'=>array(
			array('title'=>'问诊订单','child'=>array(
				array('url'=>'jy_zhongyi/store.lesson_log/','title'=>'门诊订单'),
			)),
		)),
		/*array('title'=>'签到管理','icon'=>'fa-home','url'=>'jy_zhongyi/store.sign//type=0','child'=>array(
			array('title'=>'签到管理','child'=>array(
				array('url'=>'jy_zhongyi/store.sign//type=0','title'=>'学生签到'),
				array('url'=>'jy_zhongyi/store.sign//type=1','title'=>'老师签到'),
			)),
		)),*/
		array('title'=>'评价管理','icon'=>'fa-home','url'=>'jy_zhongyi/store.comment//type=0','child'=>array(
			array('title'=>'评价管理','child'=>array(
				array('url'=>'jy_zhongyi/store.comment//type=1','title'=>'大夫评价'),
			)),
		)),
	);
}
if($_SESSION['role_id']==3){
	$menus=array(
		array('title'=>'大夫管理','icon'=>'fa-home','url'=>'jy_zhongyi/worker.index/','child'=>array(
			array('title'=>'大夫管理','child'=>array(
				array('url'=>'jy_zhongyi/worker.index/','title'=>'大夫管理'),
				array('url'=>'jy_zhongyi/worker.workerdata/','title'=>'大夫排名'),
			)),
		)),
		array('title'=>'排班管理','icon'=>'fa-home','url'=>'jy_zhongyi/worker.lesson_pai/','child'=>array(
			array('title'=>'排班管理','child'=>array(
				array('url'=>'jy_zhongyi/worker.lesson_pai/','title'=>'排班管理'),
			)),
		)),
		array('title'=>'档案管理','icon'=>'fa-home','url'=>'jy_zhongyi/worker.my_user/','child'=>array(
			array('title'=>'档案管理','child'=>array(
				array('url'=>'jy_zhongyi/worker.my_user/','title'=>'患者列表'),
			)),
		)),
		array('title'=>'问诊订单','icon'=>'fa-home','url'=>'jy_zhongyi/worker.lesson_log/','child'=>array(
			array('title'=>'问诊订单','child'=>array(
				array('url'=>'jy_zhongyi/worker.lesson_log/','title'=>'门诊订单'),
				array('url'=>'jy_zhongyi/worker.online_log/','title'=>'在线问诊订单'),
			)),
		)),
		array('title'=>'项目管理','icon'=>'fa-home','url'=>'jy_zhongyi/worker.my_goods/','child'=>array(
			array('title'=>'项目列表','child'=>array(
				array('url'=>'jy_zhongyi/worker.my_goods/','title'=>'项目列表'),
			)),
		)),
		array('title'=>'渠道收益','icon'=>'fa-home','url'=>'jy_zhongyi/worker.myfuser/','child'=>array(
			array('title'=>'渠道数据','child'=>array(
				array('url'=>'jy_zhongyi/worker.myfuser/','title'=>'MY渠道客户'),
				array('url'=>'jy_zhongyi/worker.commission/','title'=>'商城渠道收益'),
			)),
		)),
		array('title'=>'助理管理','icon'=>'fa-home','url'=>'jy_zhongyi/worker.my_zhuli/','child'=>array(
			array('title'=>'助理列表','child'=>array(
				array('url'=>'jy_zhongyi/worker.my_zhuli/','title'=>'助理列表'),
			)),
		)),
		array('title'=>'文章管理','icon'=>'fa-home','url'=>'jy_zhongyi/worker.news/','child'=>array(
			array('title'=>'文章列表','child'=>array(
				array('url'=>'jy_zhongyi/worker.news/','title'=>'文章列表'),
			)),
		)),
	);
}
if($_SESSION['role_id']==4){
	$menus=array(
		array('title'=>'我的信息','icon'=>'fa-home','url'=>'jy_zhongyi/worker.zhuliindex/','child'=>array(
			array('title'=>'我的信息','child'=>array(
				array('url'=>'jy_zhongyi/worker.zhuliindex/','title'=>'我的信息'),
			)),
		)),
		array('title'=>'档案管理','icon'=>'fa-home','url'=>'jy_zhongyi/worker.my_user/','child'=>array(
			array('title'=>'档案管理','child'=>array(
				array('url'=>'jy_zhongyi/worker.my_user/','title'=>'患者列表'),
			)),
		)),
		array('title'=>'问诊订单','icon'=>'fa-home','url'=>'jy_zhongyi/worker.lesson_log/','child'=>array(
			array('title'=>'问诊订单','child'=>array(
				array('url'=>'jy_zhongyi/worker.lesson_log/','title'=>'门诊订单'),
				array('url'=>'jy_zhongyi/worker.online_log/','title'=>'在线问诊订单'),
			)),
		)),
		array('title'=>'项目管理','icon'=>'fa-home','url'=>'jy_zhongyi/worker.my_goods/','child'=>array(
			array('title'=>'项目列表','child'=>array(
				array('url'=>'jy_zhongyi/worker.my_goods/','title'=>'项目列表'),
			)),
		)),
		array('title'=>'文章管理','icon'=>'fa-home','url'=>'jy_zhongyi/worker.news/','child'=>array(
			array('title'=>'文章列表','child'=>array(
				array('url'=>'jy_zhongyi/worker.news/','title'=>'文章列表'),
			)),
		)),
	);
}
$menus[]=array('title'=>'卡包管理','icon'=>'fa-home','url'=>'jy_zhongyi/kabao.index/','child'=>array(
			array('title'=>'卡包概况','child'=>array(
				array('url'=>'jy_zhongyi/kabao.index/','title'=>'卡包概况'),
				array('url'=>'jy_zhongyi/kabao.storedata/','title'=>'医馆发卡排行'),
				array('url'=>'jy_zhongyi/kabao.workerdata/','title'=>'大夫发卡排行'),
			)),
			array('title'=>'卡包管理','child'=>array(
				array('url'=>'jy_zhongyi/kabao.batch/','title'=>'批次管理'),
				array('url'=>'jy_zhongyi/kabao.codelog/','title'=>'领卡日志'),
				array('url'=>'jy_zhongyi/kabao.order/','title'=>'兑奖日志'),
			)),
));
return $menus;